class PowerLog < ActiveRecord::Base
  belongs_to :loadbox
  
  def self.get_power_consumption
     power_consumption = PowerLog.last.power_consumption.to_f
     #OutletStatus.where(:priority => '3')
     return power_consumption
  end
end
